[MZO-34] API 모듈 및 인터페이스 구축#5
Merged
Merged
Conversation
haryung-lee
approved these changes
Jun 20, 2023
There was a problem hiding this comment.
props drilling보다 dehydrate + hydrate로 적용한게 더 깔끔한것 같아요! 보면서 되게 에러바운더리와 같은 느낌이였는데 알파버전에서는 이름을 Hydrate를 HydrationBoundary로 바꾼거 같더라구요..?? (TanStack/query#5455) 우연히 보게된 PR이라 놀랐습니다ㅋㅋ
수고 많으셨어요 루키!👍
추가) 이름을 바꾼게 아니라 HydrationBoundary 컴포넌트가 새로 추가되는건가 봐요!(https://github.com/TanStack/query/blob/alpha/packages/react-query/src/HydrationBoundary.tsx)
Contributor
Author
|
오 아예 컴포넌트를 만들고 내부에서 hydration을 돌려버리네요. 이것도 참고해야겠네요 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Jira Issue 번호
#34
작업 내용
테크스펙
Next 13부터는 모든 컴포넌트가 기본적으로 서버 컴포넌트이므로, React-Query를 사용하는 방식이 변경되었습니다.
기존에는 App 단에서 전역으로 사용할 QueryClient를 Provider로 제공했지만, 이제는 SSR에 대한 대응도 필요해졌습니다.
자세한 내용은 저도 내일 짬내서 정리해오겠습니다. 일단 참고한 포스팅은 아래 남겨두겠습니다.
혹시 더 나은 방법이 있거나 현재 방식의 문제점이 있다면 바로 코멘트에 기술해주세요. 적극 반영하겠습니다.
Checklist